cmake_minimum_required(VERSION 3.10)
project(rtsp_info)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 添加FFmpeg头文件路径
include_directories(${CMAKE_SOURCE_DIR}/include)

# 添加FFmpeg库文件路径
link_directories(${CMAKE_SOURCE_DIR}/lib)

# 添加可执行文件
add_executable(rtsp_info main.cpp)

# 链接FFmpeg库
target_link_libraries(rtsp_info
    avformat
    avcodec
    avutil
    swscale
    swresample
) 